<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>

<p id="msg"></p>
<!-- <form id="formaddservice" class="control">  -->
<html:form method="post" styleClass="control" action="/AddService"
	enctype="multipart/form-data">

	<div id="formaddservice">
	<fieldset><label> <bean:message key="Addservice.label"/> </label>
	<table>
		<tr>
			<td><label> <bean:message key="AddserviceForm.name"/> </label></td>
			<td><!--<input class="textfieldadmin" type="text" name="nameita" id="nameServiceIta" />-->
			<!--<input class="required" type="text" name="nameita" id="nameServiceIta" minlength="5" />-->
			<html:text styleClass="textfieldadmin" property="name" /></td>
		</tr>

	</table>
	</fieldset>
	<fieldset id="formservice">
	<table>
		<tr>
			<td><label> Script </label></td>
			<td><!--<input class="textfieldadmin" type="text" name="script" id="nameScript" />-->
			<!-- <input class="required" type="text" name="script" id="nameScript" />  -->
			<html:text styleClass="textfieldadmin" property="nameScript" /></td>
		</tr>
	</table>
	</fieldset>
	<fieldset id="formservice2">
	<table>

		<tr>
			<td><label> <bean:message key="AddserviceForm.groups"/> </label></td>
			<td>
			<ul id="grouplist">
			<c:forEach var="listElement" items="${requestScope.groupList}">
				<li>				
					<html:multibox styleClass="textfieldadmin" property="group" value="${listElement.id}"/>
					${listElement.name}
				</li>	
								
			</c:forEach>
			</ul>
			</td>
		</tr>
		<tr>
			<td><label> <bean:message key="AddserviceForm.position"/> </label></td>
			<td>
		
			<html:select styleClass="textfieldadmin"  property="position">
				
					<html:option value="1">Menu 1</html:option>
					<html:option value="2">Menu 2</html:option>
				
			</html:select>	
			</td>

		</tr>
		<tr>
			<td><br />
			</td>
		</tr>
		<tr>
			<td>
			<!-- <input type="submit" value="Add" id="submitService" class="control" />-->
			<html:submit styleClass="control" value="Add" /></td>
			</td>
		</tr>
	</table>
	</fieldset>
	</div>
</html:form>
